/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.constant;

/**
 * @author THINK
 * @version v1.0
 * @className MongoDataConstant
 * @description mongodb 相关常量
 * @date 2024/6/18 9:59
 **/
public interface MongoDataConstant {

    /**
     * 金属材料结构：
     * {"_id":{"$oid":"620606fd85c7242c6c106394"},
     * "basic":{"series":"","type":"","specification":"","form":"","temper":"","thickness":"","basis":"","origin_thickness":""},
     * "parameter":{"e":[{"condition":,"value":".00","origin_value":""}],"e_sec":[{"condition":,"value":"0.","origin_value":"0"}]...}
     */
    String ISFD_PREFIX = "isfd.";
    String DB_NAME = "comac_db";
    String SPECIFICATION = "specification";
    String SERIES = "series";
    String THICKNESS = "thickness";
    String BASIS = "basis";
    String TEMPER = "temper";
    String FORM = "form";
    String BASIC = "basic";
    String PARAMETER = "parameter";
    String ID = "_id";
    String BASIC_SERIES = "basic.series";
    String BASIC_TYPE = "basic.type";
    String BASIC_SPECIFICATION = "basic.specification";
    String BASIC_THICKNESS = "basic.thickness";
    String BASIC_BASIS = "basic.basis";
    String BASIC_TEMPER = "basic.temper";
    String BASIC_FORM = "basic.form";
    String NAME = "name";
    String TYPE = "type";
    String IS_PUBLISHED = "is_published";
    String PUBLISHED_TIME = "published_time";

    /**
     * 金属材料
     */
    String MAT_MATERIAL = "mat_material";
    /**
     * 复合材料
     */
    String COMP_MATERIAL = "comp_material";

    /**
     * 紧固件
     */
    String FASTENER_EXPORT_DATA = "fastener_exportdata";

    /**
     * 算法库算法集合表
     */
    String ANALYSIS_LIST_COLLECTION_NAME = "analysis_list";
    /**
     * 复合材料结构
     * {
     *     "p_index": 1,
     *     "A11": 4111.81,
     *     "A12": 975.62,
     *     "A22": 1819.44,
     *     "A66": 1028.5,
     *     "D11": 8735.18,
     *     "D12": 2033.37,
     *     "D22": 4209.1,
     *     "D66": 2170.97,
     *     "EXX": 726.37,
     *     "EYY": 349.08,
     *     "GXY": 209.65,
     *     "VXY": 0.2,
     *     "M_n": 2
     * }
     *
     */
    String P_INDEX = "p_index";


    /**
     * mongodb命令 常量字符串
     */
    String $_MATCH = "$match";
    String $_GROUP = "$group";
    String $_ADD_TO_SET = "$addToSet";
    String $_SUM = "$sum";
    String $ = "$";
    String $_PROJECT = "$project";
    String $_SORT = "$sort";
    String COUNT = "count";
    String $_SET = "$set";
    Long ASC = 1L;
    Long DESC = 0L;

    Long INCLUDE = 1L;
    Long EXCLUDE = 0L;
}
